/*
 * @Author: czy
 * @Date: 2021-07-13 00:06:26
 * @LastEditTime: 2021-07-15 21:19:50
 */
#include "sys/type.h"
#include "sys/const.h"
#include "sys/system.h"

#include "../lib/state.h"

int idle_task_flag = 1;

int idle_task_body(void)
{
    if (idle_task_flag == 1)
    {
        printk("idle task....\n");
        idle_task_flag = 0;
    }
    while (1)
    {
        __asm__ __volatile__("sti");
        schedule();
    }
    return 0;
}
